<!--
@author     Yi Bo <etng2004@gmail.com>
@version    $Id: contacthistory_view.php 41 2007-09-03 02:06:05Z etng2004 $
@copyrithg  2006-2007 ETE.CN
@license    PHP Version 3.0 {@link http://www.php.net/license/3_0.txt}
-->
<?php
$this->declareVars();
echo $this->render('header.php');
require_once(dirname(__FILE__) . '/_meta_contacthistory.php');
/*$this->dump($this->contact_history);*/
$contact_history = $this->contact_history;
?>
<h3>
<a href="<?php echo $this->base_url;?>/view/id/<?php echo $contact_history['id']; ?>">#<?php echo $contact_history['id']; ?></a>
</h3>
<?php echo date('Y-m-d', $contact_history['contact_at']); ?>
<table cellpadding="0" cellspacing="0" border="0" class="tblborder">
    <tr class="tblbody" >
        <td><?php echo $meta['contact_history']['fields']['id'];?></td><td><?php echo $contact_history['id'];?></td>
    </tr>
    <tr class="tblbody" >
        <td><?php echo $meta['contact_history']['fields']['staff_id'];?></td><td><?php echo $contact_history['staff_id'];?></td>
    </tr>
    <tr class="tblbody" >
        <td><?php echo $meta['contact_history']['fields']['client_id'];?></td><td><?php echo $contact_history['client_id'];?></td>
    </tr>
    <tr class="tblbody" >
        <td><?php echo $meta['contact_history']['fields']['contact_id'];?></td><td><?php echo $contact_history['contact_id'];?></td>
    </tr>
    <tr class="tblbody" >
        <td><?php echo $meta['contact_history']['fields']['contact_at'];?></td><td><?php echo $this->dateFormat($contact_history['contact_at']);?></td>
    </tr>
    <tr class="tblbody" >
        <td><?php echo $meta['contact_history']['fields']['contact_by'];?></td><td><?php echo $LANG['CONTACT_BY'][$contact_history['contact_by']];?></td>
    </tr>
    <tr class="tblbody" >
        <td><?php echo $meta['contact_history']['fields']['detail'];?></td><td><?php echo $contact_history['detail'];?></td>
    </tr>
    <tr class="tblbody" >
        <td><?php echo $meta['contact_history']['fields']['conclusion'];?></td><td><?php echo $contact_history['conclusion'];?></td>
    </tr>
    <tr class="tblbody" >
        <td><?php echo $meta['contact_history']['fields']['report_at'];?></td><td><?php echo $this->dateFormat($contact_history['report_at']);?></td>
    </tr>
    <tr class="tblfoot">
    <td colspan="2">
    <a href="<?php echo $this->base_url;?>/edit/id/<?php echo $contact_history['id']; ?>">编辑</a>
<a href="<?php echo $this->base_url;?>/remove/id/<?php echo $contact_history['id']; ?>">删除</a>
    </td>
    </tr>
</table>
<?php echo $this->render('footer.php');?>